<template>
  <j-select-biz-component :width="1000" v-bind="configs"  v-on="$listeners"/>
</template>

<script>
  import JSelectBizComponent from './JSelectBizComponent'

  export default {
    name: 'WorkerPosition',
    components: { JSelectBizComponent },
    props: {
      id:{
        type: String,
        default:''
      }
    },
    data() {
      return {
        settings: {
          name: '工人列表',
          displayKey: 'name',
          returnKeys: ['id', 'code'],
          listUrl: '/hr/hrWorker/list?groupId='+this.id,
          queryParamCode: 'name',
          queryParamText: '工人名称',
          columns: [
            { title: '姓名', dataIndex: 'name', align: 'center', width: '10%',widthRight:'90%'},
            { title: '年龄', dataIndex: 'age', align: 'center', width: '10%' },
            { title: '手机号', dataIndex: 'phone', align: 'center', width: '20%' },
            { title: '注册时间', dataIndex: 'createTime', align: 'center', width: '20%' },
            { title: '工种', dataIndex: 'workeName', align: 'center', width: '15%' }
          ]
        }
      }
    },created(){
      console.log("this.id"+this.id)
    },
    computed: {
      configs() {

        return Object.assign({ value: this.value }, this.settings, this.$attrs)
      }
    }
  }
</script>

<style lang="less" scoped></style>